<?php
namespace iBrand\Component\Refund\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/11/6
 * Time: 16:24
 */
class RefundLog extends  Model
{
    use SoftDeletes;

    protected $table = 'el_refund_log';

    protected $guarded = ['id'];


    public function getRefundMsg(Refund $refund){
        $type = $refund->refund_type;
        $this->RefundMsg ='';
        /*if($this->action == 'agree' AND $type == 'REFUND_GOODS'){
             $this->RefundMsg = '退换货时，在销售单上的退换货表格内填写相关信息，填好后连同退换货商品一起寄回The North Face仓库。地址：上海市嘉定区上海市嘉定区西冈身路399号（伊藤忠物流） 联系商家电话：021-69931581 邮编： 201703 全国范围内提供快递或邮政包裹的收货方式，如使用不可查询的邮寄或快递方式所导致的遗失、破损、误送等情况，本公司不承担责任，敬请谅解。退换货办理周期：自退换申请被受理后3个工作日';

        }elseif ($this->action == 'agree' AND $type == 'REFUND'){
             $this->RefundMsg ='官方商城已经同意了您申请，我们将于3-5个工作日内将退款退至您的账户余额内';

        }else{
             $this->RefundMsg ='';
        }*/
    }

}